// import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import HmButton from './components/HmButton.vue'
import {createPinia} from 'pinia'

const app = createApp(App) //应用对象
// 在挂载之前去注册全局组件
const pinia = createPinia()
app.component("HmButton", HmButton)

app.use(router)
// 使用状态管理
app.use(pinia)

app.mount('#app') //挂载到元素上
